﻿
namespace Marmat.Forms.Views
{
    namespace DataGrid
    {
        public class CellMergeEventArgs : Grid.CellMergeEventArgs
        {
            internal CellMergeEventArgs(Forms.DataGrid GridControl, Grid.CellMergeEventArgs e) : base(GridControl, e.info)
            {
            }

            /// <summary>
            /// 返回当前 Grid
            /// </summary>
            /// <returns></returns>
            public new Forms.DataGrid GridControl
            {
                get
                {
                    return (Forms.DataGrid)base.GridControl;
                }
            }

            public new Column Column
            {
                get
                {
                    if (this._Column is null)
                    {
                        this._Column = this.GridControl.Columns[base.Column.Name];
                    }

                    return this._Column;
                }
            }

            private Column _Column;
        }
    }
}